package com.testnative.jni;

import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.Platform;

/**
 * @author xin.ding
 * @date 2021/3/1 20:14
 */
public interface HelloLibrary extends Library {

    HelloLibrary INSTANCE = Native.load((Platform.isWindows() ? "msvcrt" : "c"), HelloLibrary.class);


    // JNA 为 dll 名称
//    JnaLibrary INSTANCE = Native.load("hello", JnaLibrary.class);

    void sayHello();
}
